Enable|Disable radio(child) with checkbox (parent)?

Providing your HTML wouldn't hurt... Let's say it looks like this: With jQuery you can do something like this: $(function(){ $("input:checkbox"). Click(function(){ if ( $(this). Is(":checked") ){ $(this).

NextAll("input:radio"). Attr("disabled",true); } else{ $(this). NextAll("input:radio").

Attr("disabled",null); } }); }); EDIT I'd suggest first you divide your table into TBODYs: ВъездÐ? вто г/п 10Т Сумма: 6000 Ð? ДС: 1200 г/п 7Т Сумма: 4200 Ð?

ДС: 840 г/п 5Т Сумма: 3000 Ð? ДС: 600 г/п 3Т Сумма: 1800 Ð? ДС: 360 ХранСутки40фут гружен.

Сумма: 5300 Ð? ДС: 1060 порожн. Сумма: 3000 Ð?

ДС: 600 .... Then you can do this: $(function(){ $("table input:checkbox"). Click(function(){ if ( $(this). Is(":checked") ){ $(this).

Parents("tbody"). Find("input:radio"). Attr("disabled",true); } else{ $(this).

Parents("tbody"). Find("input:radio"). Attr("disabled",null); } }); }).

This is not xhtml-valid! (w3schools. Com/Xhtml/xhtml_syntax.

Asp) – Andreas Niedermair Feb 8 at 11:37 thank you Nabab, but my checkboxes and radios placed in a table: – master Feb 8 at 11:37 @Andreas: What's wrong? You're talking about the jQuery attr which should be attr("disabled","disabled")? – Nabab Feb 8 at 11:44 @Nabab: the value you are asigning to the attribute checked is not xhtml-valid!

Checked as value or not attribute checked – Andreas Niedermair Feb 8 at 12:59 What are you talking about? I am not assigning any value to checked, I just verify through jQuery selector ":checked" what is the checkbox state (checked or not). Or I didn't understand?

– Nabab Feb 8 at 13:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions